package com.cow.sram.data.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;


/**
 * The persistent class for the userinfo database table.
 * 
 */
@Entity
@Table(name="userinfo")
@NamedQuery(name="Userinfo.findAll", query="SELECT u FROM Userinfo u")
public class Userinfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer userid;

	private String accountname;

	private String authlevel;

	private String datagroup;

	private String email;

	private Integer job;

	private String lastloginip;

	@Temporal(TemporalType.TIMESTAMP)
	private Date lastlogintime;

	private String lockflag;

	private String lockreason;

	private Integer logtimes;

	private String mobile;

	private Integer orgid;

	private String password;

	private String registip;

	@Temporal(TemporalType.TIMESTAMP)
	private Date registtime;
	
	private Integer creator;

	private String telephone;

	private String username;

	public Userinfo() {
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getAccountname() {
		return this.accountname;
	}

	public void setAccountname(String accountname) {
		this.accountname = accountname;
	}

	public String getAuthlevel() {
		return this.authlevel;
	}

	public void setAuthlevel(String authlevel) {
		this.authlevel = authlevel;
	}

	public String getDatagroup() {
		return this.datagroup;
	}

	public void setDatagroup(String datagroup) {
		this.datagroup = datagroup;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getJob() {
		return this.job;
	}

	public void setJob(Integer job) {
		this.job = job;
	}

	public String getLastloginip() {
		return this.lastloginip;
	}

	public void setLastloginip(String lastloginip) {
		this.lastloginip = lastloginip;
	}

	public Date getLastlogintime() {
		return this.lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public String getLockflag() {
		return this.lockflag;
	}

	public void setLockflag(String lockflag) {
		this.lockflag = lockflag;
	}

	public String getLockreason() {
		return this.lockreason;
	}

	public void setLockreason(String lockreason) {
		this.lockreason = lockreason;
	}

	public Integer getLogtimes() {
		return this.logtimes;
	}

	public void setLogtimes(Integer logtimes) {
		this.logtimes = logtimes;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getOrgid() {
		return this.orgid;
	}

	public void setOrgid(Integer orgid) {
		this.orgid = orgid;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRegistip() {
		return this.registip;
	}

	public void setRegistip(String registip) {
		this.registip = registip;
	}

	public Date getRegisttime() {
		return this.registtime;
	}

	public void setRegisttime(Date registtime) {
		this.registtime = registtime;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getCreator() {
		return creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}
	
}